//+build wireinject

package client

import (
	"gitee.com/xuender/oils/level"
	"gitee.com/xuender/pp"
	"gitee.com/xuender/pp/cui"
	"gitee.com/xuender/pp/nets"
	"gitee.com/xuender/pp/robot"
	"github.com/google/wire"
)

// InitApp 初始化客户端应用.
func InitApp(
	c *pp.Config,
	db level.DB,
) *App {
	panic(wire.Build(
		NewApp,
		NewService,
		nets.NewUDPService,
		cui.NewService,
		robot.NewService,
		level.NewService,
	))
}
